@import "@/style/variables.less";

.light {
  &.login-wrapper {
    background-color: white;
    // background-image: url('@/assets/assets-login-bg-white.png');
    // background-image: url('@/assets/login-white.png');
  }
}

.dark {
  &.login-wrapper {
    // background-color: var(--td-bg-color-page);
    // background-image: url('@/assets/assets-login-bg-black.png');
    // background-image: url('@/assets/login-black.png');
    // background-image: url('@/assets/haiyouBg.png');
  }
}

.login-Bg {
  background-image: url("@/assets/login_mainbg.jpg");
  width: 100%;
  height: 762px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.bottom-Div {
  height: 2.7%;
  font-size: 14px;
  font-family: PingFangSC-Regular, "PingFang SC";
  font-weight: 400;
  color: #566570;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-wrapper {
  height: 100vh;
  //   display: flex;
  justify-content: center;
  flex-direction: column;
  background-size: cover;
  background-position: 100%;
  position: relative;
  overflow: hidden;

  .logoDiv {
    // background: #eee;
    // TODO: 内网Maybe change back
    background-image: url('@/assets/haiyou-logo.png');
    background-size: 100% 100%;
    width: 200px;
    height: 61px;
    margin: 10px 20px 11px 0;
  }

  .titleDiv {
    height: 32px;
    font-size: 30px;
    font-weight: bold;
    line-height: 32px;
    color: #0075e9;
    text-align: center;
  }
}

// .logoDiv {
//     display: flex;
//     color: var(--white-color);
//     font-size: 24px;
//     align-items: center;
//     margin: 40px 0 0 30px;
//     font-weight: 700;
//     .logoBg {
//       background-image: url('@/assets/logo.png');
//       background-size: 100% 100%;
//       width: 49px;
//       height: 44px;
//       margin-right: 10px;
//     }
//   }

.login-container {
  position: absolute;
  top: 50%;
  margin-top: -203px;
  right: 15%;
  width: 420px;
  height: 410px;
  line-height: 22px;
  background: white;
  border-radius: 4px;
}

.switch-container {
  margin-top: 24px;

  .tip {
    font-size: 14px;
    color: var(--td-brand-color-8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-right: 14px;

    &:last-child {
      &::after {
        display: none;
      }
    }

    &::after {
      content: "";
      display: block;
      width: 1px;
      height: 12px;
      background: var(--td-gray-color-3);
      margin-left: 14px;
    }
  }
}

.title-container {
  .title {
    font-size: 36px;
    line-height: 44px;
    color: var(--td-text-color-primary);
    margin-top: 4px;

    &.margin-no {
      margin-top: 0;
    }
  }

  .sub-title {
    margin-top: 16px;

    .tip {
      display: inline-block;
      margin-right: 8px;
      font-size: 14px;

      &:first-child {
        color: var(--td-text-color-secondary);
      }

      &:last-child {
        color: var(--td-text-color-primary);
        cursor: pointer;
      }
    }
  }
}

.item-container {
  width: 400px;
  margin-top: 48px;

  &.login-qrcode {
    .tip-container {
      width: 192px;
      margin-bottom: 16px;
      font-size: 14px;
      display: flex;
      justify-content: space-between;

      .tip {
        color: var(--td-text-color-primary);
      }

      .refresh {
        display: flex;
        align-items: center;
        color: var(--td-brand-color);

        .t-icon {
          font-size: 14px;
        }

        &:hover {
          cursor: pointer;
        }
      }
    }

    .bottom-container {
      margin-top: 32px;
    }
  }

  &.login-phone {
    .bottom-container {
      margin-top: 66px;
    }
  }

  .check-container {
    display: flex;
    align-items: center;

    &.remember-pwd {
      margin-bottom: 16px;
      justify-content: space-between;
    }

    .t-checkbox__label {
      color: var(--td-text-color-secondary);
    }

    span {
      color: var(--td-brand-color);

      &:hover {
        cursor: pointer;
      }
    }
  }

  .verification-code {
    display: flex;
    align-items: center;

    .t-form__controls {
      width: 100%;

      button {
        flex-shrink: 0;
        width: 102px;
        height: 40px;
        margin-left: 11px;
      }
    }
  }

  .btn-container {
    margin-top: 48px;
  }
}

.check-container {
  font-size: 14px;
  color: var(--td-text-color-secondary);

  .tip {
    float: right;
    font-size: 14px;
    color: var(--td-brand-color-8);
  }
}

.copyright {
  font-size: 14px;
  position: absolute;
  left: 5%;
  bottom: 64px;
  color: var(--td-text-color-secondary);
}

@media screen and (max-height: 700px) {
  .copyright {
    display: none;
  }
}
